package com.ruoyi.event.domain.bo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.domain.BaseEntity;
import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.Date;

/**
 * 帮扶计划业务对象 event_bf_plan
 *
 * @author strongme
 * @date 2023-02-04
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class EventBfPlanBo extends BaseEntity {

    /**
     * id
     */
    @NotNull(message = "id不能为空", groups = {EditGroup.class})
    private Long bfPlanId;

    /**
     * 被帮扶人员id
     */
    @NotNull(message = "被帮扶人员id不能为空", groups = {AddGroup.class, EditGroup.class})
    private Long userId;

    /**
     * 帮扶人员id
     */
    @NotNull(message = "帮扶人员id不能为空", groups = {AddGroup.class, EditGroup.class})
    private Long memberId;

    /**
     * 执行时间
     */
    @NotNull(message = "执行时间不能为空", groups = {AddGroup.class, EditGroup.class})
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date zxsj;

    /**
     * 计划地点
     */
    @NotBlank(message = "计划地点不能为空", groups = {AddGroup.class, EditGroup.class})
    private String jhdd;

    /**
     * 计划摘要
     */
    @NotBlank(message = "计划摘要不能为空", groups = {AddGroup.class, EditGroup.class})
    private String jhzy;

    /**
     * 计划内容
     */
    @NotBlank(message = "计划内容不能为空", groups = {AddGroup.class, EditGroup.class})
    private String jhnr;


}
